package com.example.mqtt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.sql.Time;

@Data
@Builder
@AllArgsConstructor
@TableName("sensor3")
public class Sensor3 {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Double data;
    @JsonFormat(pattern = "hh:mm:ss", timezone = "GMT+8")
    private Time time;
}
